package com.undead.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.undead.common.utils.PageUtils;
import com.undead.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Undead
 * @email 752343240@qq.com
 * @date 2022-07-30 21:32:27
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    //找到catelogId的完整路径
    //[父/子/孙]
    Long[] findCatelogPath(Long catelogId);

    void updateCasecade(CategoryEntity category);

//    void updateCasecade(CategoryEntity category);
}

